#ifndef SYS_TICK_H
#define SYS_TICK_H

#include "gd32e23x.h"
#include "stdtype.h"

#define delay_ms DelayMS
#define delay_us DelayUS

void InitSysTick();

uint32 GetSysTickMS();

void SetDueTickMS(pUint32 AValue, uint32 AGap);

void DelayMS(uint32_t ACount);
void DelayUS(uint32_t ACount);

bool SysTickAfter(uint32_t ATickMS);

#endif